# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-python-ipware
_pyname="python-ipware"
pkgver=2.0.1
pkgrel=0
arch="noarch"
pkgdesc="A python package for server applications to retrieve client's IP address"
url="https://pypi.python.org/project/python-ipware"
license="MIT"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/python-ipware/python-ipware-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
5560113cc28734b6ebbf12541f92a050c92f41cabd8067eb632cd648477e4fa4bb3a5896366b67299b2d8128f072f6687437f0f0e5363f0e2150d8583e9adf82  py3-python-ipware-2.0.1.tar.gz
"
